package com.wrx.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wrx.server.pojo.ReplyPost;
import com.wrx.server.pojo.ReplyPostModel;
import com.wrx.server.pojo.ThemePost;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wrx
 * @since 2021-04-20
 */
@Repository
public interface ReplyPostMapper extends BaseMapper<ReplyPost> {

//    , @Param("orderType")String orderType
    public List<ReplyPostModel> selAllReplyPostModel(int theme_post_id);

    public int addReplyPost(@Param("entity") ReplyPost replyPost);

    public int delReplyPost(@Param("entity") ReplyPost replyPost);

    public int delReplyPostByReplyId(int reply_post_id);
}

